package com.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.UserInfoDao;
import com.entity.User;
import com.service.UserInfoService;

@Service("userInfoService")
public class UserInfoServiceImpl implements UserInfoService{
	
	@Autowired
	private UserInfoDao userInfoDao;

	public List<User> getAllUserList() throws Exception {
		List<User> userList=null;
		try {
			userList= userInfoDao.getAllUser();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return userList;
	}

}
